/**
 * author:Administrator
 * date:2016/1/4
 * desc:TODO
 */

'use strict';

var connedSeq = require('../conn/sequelize.js');
var Sequelize = require('sequelize');
var DataTypes = Sequelize;

var Location = connedSeq.define('location',
  {
    id: {type: DataTypes.INTEGER(11), allowNull: false, primaryKey: true, autoIncrement: true},
    pid: {type: DataTypes.INTEGER(11), allowNull: false},
    name: {type: DataTypes.STRING, allowNull: false},
  },

  {
    tableName: 'location',
    freezeTableName: true,
    createdAt: false,
    updatedAt: false
  });


module.exports = Location;
